# --*--coding=utf-8 --*--
import os


class BaseConfig:
    """基本常用配置"""
    TEST_ROOT_DIR = os.path.dirname(__file__)
    # 存放log目录
    TEST_LOG_DIR = TEST_ROOT_DIR + '/log/test.log'
    # 存放测试数据的目录
    TEST_DATA_DIR = TEST_ROOT_DIR + '/data/'
    # 测试报告结果
    TEST_REPORT_DIR = TEST_ROOT_DIR + '/report/'
    # 代理报文生成存放目录
    TEST_PROXY_MSG_DIR = TEST_DATA_DIR + '/proxy/message/'


class CBSConfig(BaseConfig):
    """
    CBS的基本配置
    """
    IP = '121.15.180.82'
    CBS_ID = 'CBS13'
    PROJECT_ID = 'SZSV1001'
    PROJECT_ROOT_URL = 'http://' + IP + '/' + CBS_ID + '/'
    ROUTE_URL = 'wapi'
    # 定时任务的处理，待完善
    SYSTEM_PROJECT_ID = '00000000'
    SYSTEM_USER_NAME = '9999'
    # CBS管理用户
    MANAGE_USER_NAME_1 = '9091'
    MANAGE_USER_NAME_2 = '9092'
    SHOW_REQUEST_LOG_FLAG = True
    #
    CBC_PROXY_SERVER_IP = '99.248.176.124'
    CBC_PROXY_SERVER_PORT = 10086
